package com.tju.resource.business.tb_matl_rev;

import cn.hutool.json.JSONObject;
import com.tju.resource.model.TbMatlRev;
import com.tju.resource.result.Result;

import java.util.Map;

/**
 *
 */
public interface TbMatlRevService {

    Result<Object> byMatl(Long matlId);

    Result<Object> byMatlRev(Long matlId, String rev);

    Result<Object> byPage(Map<String, String> params);

    Result<Object> add(TbMatlRev rev);

    Result<Object> upd(TbMatlRev rev);

    Result<Object> del(Long rev);

    Result<Object> handle(JSONObject data);

}
